<?php

namespace Part08_FactoryMethodModel\Code3;

require_once '../../autoload.php';

$xueLeiFeng = SimpleFactory::CreateLeiFeng('社区志愿者');

$xueLeiFeng->BuyRice();
$xueLeiFeng->Sweep();
$xueLeiFeng->Wash();


$student1 = SimpleFactory::CreateLeiFeng('社区志愿者');

$student1->BuyRice();
$student1->Sweep();
$student1->Wash();


$student2 = SimpleFactory::CreateLeiFeng('社区志愿者');

$student2->BuyRice();
$student2->Sweep();
$student2->Wash();


$student3 = SimpleFactory::CreateLeiFeng('社区志愿者');

$student3->BuyRice();
$student3->Sweep();
$student3->Wash();